#include <tsin/runtime/GameRuntime.hpp>
#include <tsin/util/ArraySet.hpp>

using namespace tsin;

namespace tsin {
        GameRuntime *currentGame;
}

GameRuntime::GameRuntime(Config &config, Display &display,
                            Input &input, Timer &timer)
        : config(config), display(display), input(input), timer(timer)
{
        players = new ArraySet<Player *>(10);
        player_bullets = new ArraySet<BulletRuntime *>(200);

        enemies = new ArraySet<Enemy *>(100);
        enemy_bullets = new ArraySet<BulletRuntime *>(1500);
}

GameRuntime::~GameRuntime()
{
        delete players;
        delete player_bullets;
        delete enemies;
        delete enemy_bullets;
}
